package com.yunban.project.api.text_check.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import net.lab1024.sa.base.ProjectConstants;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author: lijiajun
 * @date: 2024-11-21
 * @version: 1.0
 */
@Data
@TableName(ProjectConstants.TEXT_TABLE_PREFIX + "correction_dict")
@Schema(description = "本地文本纠错字典")
public class CorrectionDict implements Serializable {

    @Serial
    private final static long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    @Schema(description = "错误词句")
    private String errorWord;

    @Schema(description = "正确词句")
    private String correctWord;

    @Schema(description = "来源")
    private String source;

    private boolean enabled = false;

    @TableField(fill = FieldFill.INSERT)
    private long createdBy;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @Schema(description = "占位符")
    private String placeholder;

    @Schema(description = "是否是敏感词")
    private boolean hasSensitiveWord = false;
}
